<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.12.3.min.js" ></script>
<script type="text/javascript">
	$(document).ready(function(){
		$('#submit').click(function (){
			$.post("login",$('#myfrom').serialize(),function(result){
				
				if(result == 'success'){
					window.location.href ="personinfo";
				}else{
					alert("账号或密码错误");
				}
				
			})
		})
		
		
	}) 
</script>
	
</head>
<body>
	<form action="login" method="post">
		账号:<input type="text" name="account" ><br>
		密码:<input type="password" name="password"><br>
		<input type="submit" value="登录">
	</form>
	
</body>
</html>

